﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.DomainModels;

namespace VOL.Domain.IServices.WarehouseManagement
{
    /// <summary>
    /// 外协入库
    /// </summary>
    public interface IOutsourcingWarehousingServices
    {
        /// <summary>
        /// 外协入库新增
        /// </summary>
        /// <param name="outsourcingWarehousing"></param>
        /// <returns></returns>
        Task<int> AddOutsourcingWarehousing(OutsourcingWarehousing outsourcingWarehousing);
        /// <summary>
        /// 外协入库显示
        /// </summary>
        /// <returns></returns>
        Task<List<OutsourcingWarehousing>> GetAllOutsourcingWarehousing(string? stockroomCode, string? outsourcing, string? supplierName, int pageIndex = 1, int pageSize = 5);
        /// <summary>
        /// 外协入库修改
        /// </summary>
        /// <param name="outsourcingWarehousing"></param>
        /// <returns></returns>
        Task<int> UpdateOutsourcingWarehousing(OutsourcingWarehousing outsourcingWarehousing);
        /// <summary>
        /// 外协入库删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleteOutsourcingWarehousing(int id);
    }
}
